<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: 14580
  Date: 2021/6/12
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查看学生</title>
</head>
<body>
<table width="600px" border="1px">
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
    <%
        ArrayList<String> student= (ArrayList<String>) session.getAttribute("students");
        for (String s:student) {
            String[] split = s.split(",");
    %>
    <tr>
        <td><%=split[0]%></td>
        <td><%=split[1]%></td>
        <td><%=split[2]%></td>
    </tr>
<%}%>
</table>
</body>
</html>
